<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/util.tld" prefix="myutil" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>订单详情</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	
	<link href = "/ecp/resources/css/default/base.css" rel = "stylesheet" type = "text/css"/>
    <script type="text/javascript" src="/ecp/resources/js/jquery-1.8.1.js"></script>
    <script type="text/javascript" src="/ecp/resources/js/tydic.js"></script>
    <script type = "text/javascript">
         jQuery(function($) {
			dicPath = '/ecp/resources/css/default/images/';
		});
	</script>
  </head>
  
  <body>
     <myutil:munuPaht menueId='${param.menuId}' optName="查看订单信息"/>
     <table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td class="ico21">
					&nbsp;
				</td>
				<td class="tb">
					订单详情信息
				</td>
				<td class="ico4">
					&nbsp;
				</td>
			</tr>
		</table>
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="dataGrid">
  <thead>
    <tr>
      <th width="18">&nbsp;</th>
      <th>商品名称</th>
      <th>商品积分</th>
      <th>商品单价</th>
      <th>商品数量</th>
      <th>商品总价</th>
      </tr>
  </thead>
  <tbody>
    <c:set var="sum" value="0"></c:set>
    <c:forEach var="vo" items="${list}" varStatus="vst">
	    <tr <c:if test='${vst.index%2 ==0}'> class='dataGridWRow' </c:if>  >
	      <td><input type="hidden" name="checkbox" id="checkbox" value="${vo.id}"/></td>
	      <td>${vo.goodname}</td>
	      <td>${vo.point}</td>
	      <td>${vo.price}</td>
	      <td>${vo.num}</td>
	      <td>${vo.price*vo.num}</td>
	      <c:set var="sum" value="${sum+vo.price*vo.num}"></c:set>
	    </tr>
    </c:forEach>
       <tr>
          <td><input type="hidden" name="checkbox" id="checkbox" value="${vo.id}"/></td>
	      <td> </td>
	      <td> </td>
	      <td> </td>
	      <td>总计： </td>
	      <td> ${sum}</td>
       </tr>
  </tbody>
</table>
        
		<table width="100%" border="0" cellspacing="0" cellpadding="0"
			class="mT5">
			<tr>
				<td height="30" align="center">
					<input type="button" value="返回" class="btn1" onclick="history.go(-1);"/>
				</td>
			</tr>
		</table>
  </body>
</html>
